#ifndef ADD_DISH_H
#define ADD_DISH_H
#include"business.h"
#include <QWidget>
#include<vector>
#include"poco/sale/saleSetMeal.h"
#include"poco/saleBase.h"
namespace Ui {
class add_dish;
}

class add_dish : public QWidget
{
    Q_OBJECT

public:
    explicit add_dish(QWidget *parent = nullptr);
    ~add_dish();
    //商家id
    int id;
    vector<SaleBase*> foods;
    //菜品名称
    QStringList dish_name;
    struct FoodType
        {
            int id;//类型id
            string name;//类型名称
            vector<SaleBase*> foods;//该类型包含的所有食物
        };
    SaleBase*sale;
    FoodType *food_type;
    SaleSetMeal * meals;
    int meals_num=0;
    void set_inform(QStringList name,int id);

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::add_dish *ui;
};

#endif // ADD_DISH_H
